import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:industry_net/base/common/colors_util.dart';
import 'package:industry_net/base/common/size_fit.dart';

import 'text_util.dart';

final tpThemeData = ThemeData().copyWith(
  // Color类型，分隔符(Dividers)和弹窗分隔符(PopupMenuDividers)的颜色，也用于ListTiles和DataTables的行之间。要创建使用这种颜色的合适的边界，请考虑
  dividerColor: ColorsUtil.separator,
  appBarTheme: AppBarTheme(
    systemOverlayStyle: SystemUiOverlayStyle.dark,
    iconTheme: const IconThemeData(color: ColorsUtil.title),
    elevation: 1,
    backgroundColor: ColorsUtil.bg,
    toolbarTextStyle: pfMediumStyle(fontSize: font17, color: ColorsUtil.title),
    titleTextStyle: pfMediumStyle(fontSize: font17, color: ColorsUtil.title),
  ),
  scaffoldBackgroundColor: ColorsUtil.bg, //页面背景色
  // inputDecorationTheme: InputDecorationTheme(
  //   // errorBorder: ,
  //   filled: true,
  //   fillColor: ColorsUtil.textBg,
  //   isCollapsed: true,
  //   focusedBorder: OutlineInputBorder(
  //     borderSide: BorderSide.none,
  //     borderRadius: BorderRadius.all(
  //       Radius.circular(4.w),
  //     ),
  //   ),
  //   border: OutlineInputBorder(
  //     gapPadding: 0,
  //     borderRadius: BorderRadius.all(
  //       Radius.circular(4.w),
  //     ),
  //   ),
  //   disabledBorder: OutlineInputBorder(
  //     borderSide: BorderSide.none,
  //     gapPadding: 0,
  //     borderRadius: BorderRadius.all(
  //       Radius.circular(4.w),
  //     ),
  //   ),
  //   enabledBorder: const OutlineInputBorder(
  //     borderSide: BorderSide.none,
  //     gapPadding: 0,
  //     borderRadius: BorderRadius.all(
  //       Radius.circular(6.0),
  //     ),
  //   ),
  //   // contentPadding: EdgeInsets.fromLTRB(16, 12, 12, 10),
  //   hintStyle:
  //       pfMediumStyle(fontSize: font15, color: const Color(0x66ffffff)),
  // ),
  dividerTheme: ThemeData.light().dividerTheme.copyWith(
        color: const Color(0xFFE9EBEE),
      ),
);
